<?php
/**
 * @version     1.0.1
 * @package     com_ganeshavereadores
 * @copyright  	
 * @license     
 * @author      Jorge Eduardo
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.keepalive');
JHtml::_('formbehavior.chosen', 'select');

?>
<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
		if (task == 'homenageado.cancel' || document.formvalidator.isValid(document.id('edit-form'))) {
			Joomla.submitform(task, document.getElementById('edit-form'));
		}
		else {
			alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
		}
	}
</script>

<form action="<?php echo JRoute::_('index.php?option=com_ganeshavereadores&layout=edit&id='.(int) $this->item->id); ?>" method="post" enctype="multipart/form-data" name="adminForm" id="edit-form" class="form-validate">
	<?php echo JLayoutHelper::render('joomla.edit.title_alias', $this); ?>
   	<div class="form-horizontal">
	   	<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'details')); ?>   	   
   			<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'details', JText::_('COM_GANESHAVEREADORES_HOMENAGEADO_DETAILS', true)); ?>   	
   				<div class="row-fluid">
					<div class="span9">
						<div class="form-vertical">
							<?php echo $this->form->getControlGroup('homenagem'); ?>
							<?php echo $this->form->getControlGroup('nome'); ?>				
							<?php echo $this->form->getControlGroup('vereador'); ?>	
							<?php echo $this->form->getControlGroup('data'); ?>				
							<?php echo $this->form->getControlGroup('hora'); ?>				
										
							<?php echo $this->form->getControlGroup('conteudo'); ?>												
						</div>
					</div>			
					<div class="span3">
						<?php echo JLayoutHelper::render('joomla.edit.global', $this); ?>
					</div>
				</div>	
			<?php echo JHtml::_('bootstrap.endTab'); ?>
		<?php echo JHtml::_('bootstrap.endTabSet'); ?>
	</div>	
	<input type="hidden" name="task" value="" />
	<?php echo JHtml::_('form.token'); ?>
	<div class="clr"></div>
</form>